package com.bjut.dao.impl;

import com.bjut.dao.DetailInfoDao;
import com.bjut.domain.DetailInfo;
import com.bjut.domain.Employee;
import com.bjut.domain.User;

 

public class DetailInfoDaoImpl extends HRglxtHibernateDaoSupport  implements DetailInfoDao  {


	
	public void delete(DetailInfo detailInfo) {
		getHibernateTemplate().delete(detailInfo);
		
	}

	public void delete(int id) {
		getHibernateTemplate().delete(get(id));
	}

	public DetailInfo findById(int id) {
		return (DetailInfo)getHibernateTemplate().get(DetailInfo.class, id);
	}

	public DetailInfo get(int id) {
		return (DetailInfo) getHibernateTemplate().get(DetailInfo.class, id);
	}

	public void save(DetailInfo detailInfo) {
		getHibernateTemplate().save(detailInfo);		
	}

	public void update(DetailInfo detailInf) {
		getHibernateTemplate().update(detailInf);
	}

}
